package com.yuedong.down.util;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;

import com.yuedong.down.dialog.CommentDialog;


public class DialogUtil {
private CommentDialog commentDialog;
    public CommentDialog showCommentDilog(Context context, int layoutRes) {
        commentDialog = null;
        commentDialog = new CommentDialog(context);
        View view = LayoutInflater.from(context).inflate(layoutRes, null);
        commentDialog.setContentView(view);
        commentDialog.show();
        return commentDialog;
    }
}
